package com.ruoyi.common.core.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 资产型号信息对象 ams_asset_template
 * 
 * @author yfkj
 * @date 2021-10-15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AmsAssetTemplate extends com.ruoyi.common.core.web.domain.BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** 资产型号信息主键 */
    @TableField(exist = true)
    @ApiModelProperty(value =  "${comment}")
    @TableId(type= IdType.AUTO)
    private Long assetTemplateId;
    /** 资产型号名称 */
    @Excel(name = "资产型号名称")
    @TableField(exist = true)
    @ApiModelProperty(value =  "资产型号名称")
    private String assetTemplateName;
    /** 资产类型外键 */
    @Excel(name = "资产类型外键")
    @TableField(exist = true)
    @ApiModelProperty(value =  "资产类型外键")
    private Long assetTypeId;
    /** 规格标准 */
    @Excel(name = "规格标准")
    @TableField(exist = true)
    @ApiModelProperty(value =  "规格标准")
    private String specification;
    /** 计量单位 */
    @Excel(name = "计量单位")
    @TableField(exist = true)
    @ApiModelProperty(value =  "计量单位")
    private String measureUnit;
    /** 数量 */
    @Excel(name = "数量")
    @TableField(exist = true)
    @ApiModelProperty(value =  "数量")
    private Integer amount;
    public static final String ASSET_TEMPLATE_ID="asset_template_id";
    public static final String ASSET_TEMPLATE_NAME="asset_template_name";
    public static final String ASSET_TYPE_ID="asset_type_id";
    public static final String SPECIFICATION="specification";
    public static final String MEASURE_UNIT="measure_unit";
    public static final String AMOUNT="amount";
    public static final String CREATE_BY="create_by";
    public static final String CREATE_TIME="create_time";
    public static final String UPDATE_BY="update_by";
    public static final String UPDATE_TIME="update_time";
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("assetTemplateId", getAssetTemplateId())
            .append("assetTemplateName", getAssetTemplateName())
            .append("assetTypeId", getAssetTypeId())
            .append("specification", getSpecification())
            .append("measureUnit", getMeasureUnit())
            .append("amount", getAmount())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
